﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace DapperORM.Abstractions
{
    /// <summary>
    /// 批量操作
    /// </summary>
    public interface IBulk
    {
        /// <summary>
        /// 批量写入
        /// </summary>
        Task BulkInsetAsync<TEntity>(IDbConnection connection, IEnumerable<TEntity> entities, IDbTransaction transaction = null, int? commandTimeout = null) where TEntity : class;
    }
}
